import React from 'react'

export default function (props) {
    const W = (<div style={{width:props.width}}>
        <img style={{width:'100%'}} src={props.src}></img>
    </div>)
    const H = (<div style={{height:props.height}}>
        <img style={{height:'100%'}} src={props.src}></img>
    </div>)
  return ( 
    <>
        {props.width && W}
        {props.height && H}
    </>
  )
}
